
package gameUtils;


/**
 * @author CrimsonWireless
 *
 */
public class StackNode{
	public Object nodeContents;
	private StackNode nextNode;
	
	 StackNode getNextNode(){
		return this.nextNode;
	}
	
	void setNextNode(StackNode nextNode){
		this.nextNode = nextNode;
	}
	
	public String toString(){
		return nodeContents.toString();
	}
	public StackNode(Object nodeContents){
		this.nodeContents = nodeContents;
		this.nextNode = null;
	}
	public StackNode(Object nodeContents, StackNode nextNode){
		this.nextNode = nextNode;
		this.nodeContents = nodeContents;
	}
	public StackNode(){
		this.nextNode = null;
		this.nodeContents = null;
	}
	
}
